public function getImByUser(\AlfredSlack\Models\UserModel $user)
 {
     $teamId = $user->getAuth()->team_id;
     $model = $this->services[$teamId];
     return $model->getImByUser($user);
 }
 public function getImByUser(\AlfredSlack\Models\UserModel $user)
 {
     $userId = $user->getId();
     // Get the IM id if a user
     $ims = $this->getIms(true);
     $im = Utils::find($ims, ['user' => $userId]);
     if (empty($im)) {
         $im = $this->openIm($user);
     }
     return ModelFactory::getModel($im, '\\AlfredSlack\\Models\\ImModel');
 }