def serialize(conf)
      check_channel_networks!(conf)
      [name, {
        'endpoint' => endpoint,
        'secret' => secret,
        'gitlab' => gitlab,
        'shortener_url' => shortener_url,
        'shortener_secret' => shortener_secret,
        'channels' => Channel.serialize_all(channels, conf)
      }]
    end
def serialize(conf)
      check_channel_networks!(conf)
      [name, {
        'endpoint' => endpoint,
        'secret' => secret,
        'gitlab' => gitlab,
        'shortener_url' => shortener_url,
        'shortener_secret' => shortener_secret,
        'channels' => Channel.serialize_all(channels, conf)
      }]
    end
Serializes this integration.

 @param conf [Hash] the deserialized configuration
 @return [Array, Hash] the serialized object